/**
 * Created by mengxiaxia on 2017/1/15.
 */
(function () {
    var app=angular.module('app', ['ui.router']);
    app.config(["$stateProvider","$urlRouterProvider",routeConfig])
    app.controller("testCtrl", angular.noop);
    function routeConfig($stateProvider,$urlRouterProvider){
        $urlRouterProvider.otherwise("/app");
        $stateProvider
            .state("home",{
                url:"/home",
                templateUrl:"'page1.html'"
            })
            .state("test",{
                url:"/test",
                templateUrl:"'page3.html'"
            })
    }
})();